package com.tbit.manager.api;

import com.tbit.manager.api.dto.*;
import com.tbit.manager.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.Map;

/**
 * 区域数据预统计 openfeign接口
 *
 * @author <a href="mailto:chen.wutian@tbit.com.cn">BUGTian</a>
 * @since 2024/9/14
 */
@FeignClient(name = ApiConstants.NAME)
public interface AccountDayStatApi {

    String PREFIX = ApiConstants.PREFIX + "/accountDayStat";

    /**
     * 获取运营数据
     * @param operationalDataDTO 运营数据查询传输实体类
     * @return 运营数据详情
     */
    @PostMapping(value = PREFIX, produces = "application/json", consumes = "application/json")
    Map<String, Object> operationalData(@Valid @RequestBody OperationalDataDTO operationalDataDTO);


}
